﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;

namespace QLBH.Models
{
    public class CategoryModel:ModelBase
    {
        private int id;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }
        private String name;

        public String Name
        {
            get { return name; }
            set { name = value; }
        }
        private String created_at;

        public String Created_at
        {
            get { return created_at; }
            set { created_at = value; }
        }
        private String description;

        public String Description
        {
            get { return description; }
            set { description = value; }
        }
        private int industry_id;
        public int Industry_id
        {
            get { return industry_id; }
            set { industry_id = value; }
        }
        public CategoryModel()
        {
        }
        public override NameValueCollection PrepareValue()
        {
            NameValueCollection uploadVals = new NameValueCollection();
            uploadVals.Add("id", this.Id.ToString());
            uploadVals.Add("name", this.Name);
            uploadVals.Add("description", this.Description);
            uploadVals.Add("industry_id", this.Industry_id.ToString());
            return uploadVals;
        }
    }
}
